package com.dg.cuckoo.admin.repository;

import com.dg.cuckoo.admin.dto.projectDeclare.oneProDeclare.EarlyDeclareDto;
import com.dg.cuckoo.core.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EarlyDeclareRepository extends BaseRepository<EarlyDeclareDto,String> {

    EarlyDeclareDto findByProjectName(String name);

    @Query(value = "select * from early_declare limit ?,?",nativeQuery = true)
    List<EarlyDeclareDto> page(Integer page, Integer pageSize);

}
